package TestDemo4;

/**
 * Created with IntelliJ IDEA
 * Description:使用lambda表达式
 * User:恋恋
 * Date:2024-12-05
 * Time:11:26
 */
public class test {
    public static void main(String[] args) {
        //把任务用lambda表达式来描述，直接把lambda传给Thread构造方法
        Thread  t = new Thread(()->{
            System.out.println("使用lambda表达式");
        });
        t.start();
    }
}
